<template>
    <div class="header">
        <div class="title" @click="push('Featured')">{{ title }}</div>
    </div>
</template>

<script>
let _this = null
export default {
    name: 'HeaderSimple',
    props: {
        title: {
            type: String,
            default: '应用市场'
        }
    },
    created() {
        _this = this
    },
    methods: {
        push: (name) => {
            _this.$router.push('/' + name)
        }
    }
}
</script>

<style lang="scss" scoped>
.header {
    height: 48px;
    background: #f1f1f1;
    min-width: 960px;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .title {
        margin: auto;
        width: 960px;
        text-align: left;
        font-size: 20px;
        cursor: pointer;
    }
}
</style>